﻿using MyX.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LearningEnglish.Models
{
    public class LearnUser : XEntity
    {
        public LearnUser(Guid id)
            : base(id)
        {

        }

        public LearnUser(string name, string password)
            : base()
        {
            Update(new LearnUserCreated() { Name = name, Password = password });
        }

        public void Do(LearnUserCreated e)
        {

        }

    }

    public class LearnUserCreated : XEvent
    {
        public string Name { get; set; }
        public string Password { get; set; }
    }
}